<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<title>活动</title>
	<link rel="stylesheet" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/mui/css/mui.min.css">
	<link rel="stylesheet" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/sui/css/SUI.css">
    <link href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/css/other/app.css" rel="stylesheet" />
	<link rel="stylesheet" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/css/app.css?v=4">
	<link rel="stylesheet" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/font/iconfont.css">
    <link rel="stylesheet" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/swiper/css/swiper.min.css">
    <link rel="stylesheet" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/css/tcindex.css?">
</head>
<style type="text/css">
    .mui-bar-tab .mui-tab-item .mui-icon{top: 5px;}
</style>
<body class="activity">
    <div class="swiper-container">
        <div class="swiper-wrapper" id="slide">
            {{range .ad}}
            <div class="swiper-slide goto" href="{{.url}}" style="background-image: url({{.pathname}});"></div>
            {{end}}
        </div>
        <div class="swiper-pagination"></div>
    </div>
    <div class="rcmdHd"><span>精选团购</span></div>
    <div class="gpSale">
        {{range $i, $v := .gbuy}}
        {{ if $v }}
        <dl>
            <dt><img src="{{.product.pathname}}" alt=""></dt>
            <dd>
                <p>{{.product.title}}</p>
                <p>{{range .product.keywords}}<span>{{.}}</span>{{end}}</p>
                <p>
                    <span class="goto" href="/mobile/column/product_content?id={{.pid}}">去参团</span>
                    <span>{{.jnum}}人团购 &yen;<label>{{.price}}</label></span><span>单买价 <s>&yen;{{.product.price}}</s></span>
                </p>
            </dd>
        </dl>
        {{ end }}
        {{end}}
    </div>
<nav class="mui-bar mui-bar-tab">
    <a class="mui-tab-item goto" href="/mobile/index">
        <span class="mui-icon iconfont icon-home2"></span>
        <span class="mui-tab-label">首页</span>
    </a>
    <a class="mui-tab-item goto" href="/mobile/column">
        <span class="mui-icon iconfont icon-liebiao"></span>
        <span class="mui-tab-label">分类</span>
    </a>
    <a class="mui-tab-item goto mui-active " href="/mobile/active">
        <span class="mui-icon iconfont icon-tianmaohaoquan"></span>
        <span class="mui-tab-label">活动</span>
    </a>
    <a class="mui-tab-item goto" href="/mobile/shopcar">
        <span class="mui-icon iconfont icon-gouwucheman"></span>
        <span class="mui-tab-label">购物车</span>
    </a>
    <a class="mui-tab-item goto" href="/mobile/my">
        <span class="mui-icon iconfont icon-kefuyouxian"></span>
        <span class="mui-tab-label">我的</span>
    </a>
</nav>
</body>
</html>
<!-- 请更新sui -->
<script type="text/javascript" src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/sui/js/SUI.js?v2"></script>
<script type="text/javascript" src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/swiper/js/swiper.min.js"></script>
{{template "wechat/public/share.html" .}}
<script type="text/javascript">
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: true,
        loop:true,
        autoplay:3500
    });
</script>